import s from './index.module.scss';

const HomePage = ({ location, history }) => {
  console.log(location);

  const toGood = () => {
    history.push({
      pathname: '/good',
      search: 'name=&age=',
    });
  };

  return (
    <>
      <div className={s.container}>
        <div className={s.title}>Home</div>
        <div className={s.card}>
          <button className={s.btn} onClick={toGood}>
            toGood
          </button>
        </div>
      </div>
    </>
  );
};

export default HomePage;
